package stark.app.api;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import stark.app.frame.netframe.DetailBean;
import stark.app.function.net_ping_ip.IpQueryBean;

/**
 * <pre>
 *     author : cfans
 *     time   : 2020/10/09
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public interface IpQueryApiService {

    String BASE_URL = "http://ip-api.com/json/";

    /**
     * 获取IP info
     */
    @GET("{host}?lang=zh-CN")
    Observable<IpQueryBean> ipQuery(@Path("host") String host);



}
